package cn.iocoder.yudao.module.picturebook.dal.mysql.concern;

import cn.iocoder.yudao.module.picturebook.dal.dataobject.concern.ConcernDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ConcernMapper {
    ConcernDO selectByUserIdAndConcernId(@Param("userId") Long userId, @Param("concernId") Long concernId);

    List<Long> selectByUserId( @Param("userId") Long userId);

    int concern(@Param("concernId") Long concernId, @Param("userId") Long userId);

    int cancelConcern(@Param("concernId") Long concernId, @Param("userId") Long userId);
}
